package pl.edu.pb.wi.cookbook.form;

import org.hibernate.validator.constraints.NotEmpty;
import org.hibernate.validator.constraints.URL;

public class ShortenUrlForm {
    @NotEmpty(message = "Wpisz URL.")
    @URL(message = "URL nie jest poprawny.")
    private String url;
    private String result;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getResult() {
        return result;
    }

}
